<?php
$server = new  Swoole\Server('127.0.0.1','9506');

$server->set([
   'daemonize'=>1,
    'worker_num'=>1
]);

$server->on('Receive', function ($server, $fd, $reactor_id, $data) {
    $server->send($fd, "<header>头部</header>");
});

$server->start();

